/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.rs.dao;

import java.util.Collection;
import java.util.List;

import com.xy.biz.rs.domain.po.ManufactureArchiveRecordPO;
import com.xy.biz.rs.domain.query.ManufactureArchiveRecordQuery;

/**
 *
 *
 * @author wwj
 * @date 2021-4-19
 */
public interface ManufactureArchiveRecordDao {

	/**
	 * 保存
	 *
	 * @param manufactureArchiveRecordPO
	 */
	int saveManufactureArchiveRecord(ManufactureArchiveRecordPO manufactureArchiveRecordPO);

	/**
	 * 保存多个
	 *
	 * @param collection
	 */
	int saveAllManufactureArchiveRecord(Collection<ManufactureArchiveRecordPO> collection);

	/**
	 * 更新
	 *
	 * @param manufactureArchiveRecordPO
	 */
	int updateManufactureArchiveRecord(ManufactureArchiveRecordPO manufactureArchiveRecordPO);

	/**
	 * 删除
	 *
	 * @param manufactureArchiveRecordId
	 */
	int deleteManufactureArchiveRecord(Long manufactureArchiveRecordId);

	/**
	 * 查找一个
	 *
	 * @param manufactureArchiveRecordId
	 * @return
	 */
	ManufactureArchiveRecordPO getManufactureArchiveRecord(Long manufactureArchiveRecordId);

	/**
	 * 查找多条
	 *
	 * @param collection
	 * @return
	 */
	List<ManufactureArchiveRecordPO> listManufactureArchiveRecordById(Collection<Long> collection);

	/**
	 * 条件查找多条
	 *
	 * @param query 查找条件
	 * @return
	 */
	List<ManufactureArchiveRecordPO> listManufactureArchiveRecord(ManufactureArchiveRecordQuery query);

	/**
	 * 条件统计个数
	 *
	 * @param query 查找条件
	 * @return
	 */
	int countManufactureArchiveRecord(ManufactureArchiveRecordQuery query);

}
